import { http } from "../utils/http";

/** 获取服务列表 */
export const getServicePage = params => {
  return http.request("get", "/v1/get_service_page", { params });
};

/** 创建服务 */
export const createService = data => {
  return http.request("post", "/v1/create_service", { data });
};

/** 修改服务 */
export const modifyService = data => {
  return http.request("post", "/v1/modify_service", { data });
};

/** 创建服务选项 */
export const createServiceOption = data => {
  return http.request("post", "/v1/create_service_option", { data });
};

/** 修改服务选项 */
export const modifyServiceOption = data => {
  return http.request("post", "/v1/modify_service_option", { data });
};

/** 修改服务选项 */
export const getServiceOptionList = params => {
  return http.request("get", "/v1/get_service_option_list", { params });
};

/** 删除服务 */
export const delService = data => {
  return http.request("post", "/v1/del_service", { data });
};
